package com.lianzhihui.romeex.net;


import com.lianzhihui.romeex.MyApplication;
import com.lianzhihui.romeex.config.AppConstants;

public class APIConstant {

    //URL
    public static String getBASE_URL() {
        String URL = "";
        switch (MyApplication.getEnvironment()) {
            case AppConstants.AppStatus.TEST:
                URL = "http://47.108.130.50:8955";
                break;
            case AppConstants.AppStatus.CHECK:
                URL = "http://47.108.130.50:8955";
                break;
            case AppConstants.AppStatus.RELEASE:
                URL = "https://wallet.riceex.com/";
                break;
        }
        return URL;
    }

    //H5_URL
    public static String getH5_BASE_URL() {
        String URL = "";
        switch (MyApplication.getEnvironment()) {
            case AppConstants.AppStatus.TEST:
                URL = "http://47.108.130.50";
                break;
            case AppConstants.AppStatus.CHECK:
                URL = "http://47.108.130.50";
                break;
            case AppConstants.AppStatus.RELEASE:
                URL = "https://wallet.romeex.com";
                break;
        }
        return URL;
    }

    public static final String UPLOAD_FILE = "";

    public static final String H5_privacyAgreement = getH5_BASE_URL() + "/privacyAgreement";
    public static final String H5_userAgreement = getH5_BASE_URL() + "/userAgreement";
    public static final String H5_trade_rule = getH5_BASE_URL() + "/collateralRules";


    //rice 大学
    public static final String H5_RICE1 = "";
    //rice 官网
    public static final String H5_RICE2 = "https://www.ricechain.org";
    //区块浏览器
    public static final String H5_RICE3 = "https://explorer.riceex.com/";
    //销毁池
    public static final String H5_RICE4 = "https://explorer.riceex.com/defi/1";
    //竞技池
    public static final String H5_RICE5 = "https://explorer.riceex.com/defi/2";
    //开发者中心
    public static final String H5_RICE6 = "https://github.com/Ricechainorg";
    //RICE 借贷
    public static final String H5_RICE7 = "https://explorer.riceex.com/defi/3";
    //IPFS 算力池
//    public static final String H5_RICE8 = "";
    //充值
    public static final String H5_RICE8 = getH5_BASE_URL() +"/voucherCenter?userAddress=";

//    http://47.108.130.50/voucherCenter?userAddress=13yNMZ2RSqM2ho7MRAFFMsJdrcjZWWxTQ3&os=ios&signAsStr=rome  测试地址
//    https://wallet.riceex.com/voucherCenter?userAddress=13yNMZ2RSqM2ho7MRAFFMsJdrcjZWWxTQ3&os=ios&signAsStr=rome  正 式地址

    //同步用户
    public static final String SYNC_USER = "/ahyback/user/synchronousWallet";
    //钱包首页
    public static final String WALLET_INFO = "/ahyback/wallet/asserts";
    //转账配置
    public static final String COIN_CONFIG = "/ahyback/wallet/transferConfig";
    //转账
    public static final String ZHUANZHANG = "/ahyback/wallet/transfer";
    //交易详情
    public static final String TRADE_DEATAILS = "/ahyback/wallet/tradeDetail";

    // 遗留 URL
    //同步钱包
    public static final String SYNC_WALLET = "/nbnback/appNWallet/synchronousWallet";

    //查询国家和地区
    public static final String REGION_LIST = "/nbnback/regionList/find";
    //获取验证码
    public static final String GET_PHONE_CODE = "/nbnback/verificationCode/phoneValidateCode";
    //同步电话验证码
    public static final String IMPORT_PHONE = "/nbnback/candy/getDrawRecrd";

    //生态商城
    public static final String ZOOLGOYG_MAlL = "/nbnback/mall/getCompanyCode";
    //绑定交易所地址
    public static final String BIND_EXCHANGE = "/ahyback/user/bindExchange";
    //用户信息
    public static final String USER_INFO = "/ahyback/user/userInfo";
    //邀请说明
    public static final String BIND_INFO = "/ahyback/system/bindInfo";
    //交易记录
    public static final String TRADE_RECORD = "/ahyback/wallet/tradeRecord";
    //客服
    public static final String USERREGISTERKF = "/ahyback/user/userRegisterKF";
    //绑定邀请码
    public static final String BINDPARENT = "/ahyback/user/bindParent";
    //头矿首页
    public static final String FIRSTMINNER_FINDHOME = "/ahyback/firstMinner/findHome";
    //头矿挖矿记录
    public static final String FIRSTMINNER_FINDRECORD = "/ahyback/firstMinner/findRecord";
    //开启头矿
    public static final String FIRSTMINNER_OPENFIRSTSTATUS = "/ahyback/firstMinner/openFirstStatus";
    //用户团队邀请首页
    public static final String SUN_FINDSUNRELATION = "/ahyback/sun/findSunRelation";
    //验证交易所id和电话
    public static final String FINDEXCHANGEINFO = "/ahyback/user/findExchangeInfo";
    //流动池 基本信息
    public static final String FLOW_CELL_INFO = "/ahyback/rollingPool/topInfo";
    //流动池质押
    public static final String PLEDGE = "/ahyback/rollingPool/pledge";
    //质押 升级
    public static final String PLEDGE_UPDATE = "/ahyback/rollingPool/updateFisrtOrder";
    //流动池提取
    public static final String EXTRACT = "/ahyback/rollingPool/extract";
    //质押记录
    public static final String PLEDGE_RECORD = "/ahyback/rollingPool/pledgeList";
    //提取记录
    public static final String EXTRACT_RECORD = "/ahyback/rollingPool/extractList";
    //划转首页
    public static final String PROFIT_FINDHOME = "/ahyback/profit/findHome";
    //划转
    public static final String PROFIT_TRANSFER = "/ahyback/profit/transfer";
    //交易所相关首页信息
    public static final String EXCHANGE_FINDHOME = "/ahyback/exchange/findHome";
    //流水记录
    public static final String EXCHANGE_FINDEXCHANGEFLOW = "/ahyback/exchange/findExchangeFlow";
    //矿池首页
    public static final String ROLLINGPOOL_INDEX = "/ahyback/rollingPool/index";
    //兑换首页
    public static final String CONVERSION_INDEX = "/ahyback/conversion/index";
    //兑换汇率
    public static final String CONVERSION_COINPRICE = "/ahyback/conversion/coinPrice";
    //兑换
    public static final String CONVERSION_CONVERTE = "/ahyback/conversion/converte";
    //兑换记录
    public static final String CONVERSION_CONVETLIST = "/ahyback/conversion/convetList";
    //团队收益明细
    public static final String SUN_TEAMAWARD = "/ahyback/sun/teamAward";
    //团队收益明细
    public static final String ROLLINGPOOL_AWARDLIST = "/ahyback/rollingPool/awardList";
    //刷新交易所流水订单
    public static final String EXCHANGE_REFLASHEXCHANGEFLOW = "/ahyback/exchange/reFlashExchangeFlow";
    //刷新交易所流水订单
    public static final String WALLET_PROFITLIST = "/ahyback/wallet/profitlist";
    //积分转账记录
    public static final String MINNER_TRANSFERLIST = "/ahyback/minner/transferList";
    //我的账户余额、积分信息
    public static final String MINNER_MYBALANCE = "/ahyback/minner/myBalance";
    //节点购买
    public static final String MINNER_BUYNODE = "/ahyback/minner/buyNode";
    //积分转账
    public static final String MINNER_TRANSFER = "/ahyback/minner/transfer";


}
